package com.atguigu.jxc.controller;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.ReturnList;
import com.atguigu.jxc.service.ReturnListGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/returnListGoods")
public class ReturnListGoodsController {

    @Autowired
    private ReturnListGoodsService returnListGoodsService;

    /**
     * 退货出库 退货单保存
     * http://localhost:8080/returnListGoods/save?returnNumber=TH1605768591211
     * @author xuzhenzhan
     * @param returnList
     * @param returnListGoodsStr
     * @return
     */
    @PostMapping("save")
    public ServiceVO save(ReturnList returnList, String returnListGoodsStr) {
        return returnListGoodsService.save(returnList, returnListGoodsStr);
    }
}
